<include file="Public:header" />

<div id="page-body">
    <div id="qan-breadcrumbs"><span><a href="{$_global.site_url}">{$Think.lang.home}</a></span>&gt;&nbsp;<span>{$Think.lang.mcp}</span></div>
    <include file="Modcp:menu" />
    <div id="mod-queue" class="mod-menu">
        <ul>
            <eq name="_adminGroup.allow_approve_post" value="1">
            <li class="<eq name="type" value="question">current</eq>"><a href="{:U('Modcp/moderation',array('type'=>'question'))}">{$Think.lang.mcp_unapproved_questions}</a></li>
            <li class="<eq name="type" value="answer">current</eq>"><a href="{:U('Modcp/moderation',array('type'=>'answer'))}">{$Think.lang.mcp_unapproved_answers}</a></li>
            <li class="<eq name="type" value="comment">current</eq>"><a href="{:U('Modcp/moderation',array('type'=>'comment'))}">{$Think.lang.mcp_unapproved_comments}</a></li>
            </eq>
            <if condition="$_adminGroup.allow_approve_user AND ($_global.require_activation eq 'by_admin')">
            <li class="<eq name="type" value="user">current</eq>"><a href="{:U('Modcp/moderation',array('type'=>'user'))}">{$Think.lang.mcp_unapproved_users}</a></li>
            </if>
            <eq name="_adminGroup.allow_approve_team" value="1">
            <li class="<eq name="type" value="team">current</eq>"><a href="{:U('Modcp/moderation',array('type'=>'team'))}">{$Think.lang.mcp_unapproved_teams}</a></li>
            </eq>
        </ul>
    </div>
    <div id="mod-container">
    <notempty name="list">
        <switch name="type">
            <case value="team"><include file="Modcp:teamQueue" /></case>
            <case value="user"><include file="Modcp:userQueue" /></case>
            <case value="question"><include file="Modcp:questionQueue" /></case>
            <case value="answer"><include file="Modcp:answerQueue" /></case>
            <case value="comment"><include file="Modcp:commentQueue" /></case>
        </switch>
    <else/>
    <p class="no-results">{$Think.lang.mcp_no_unapproved_results}</p>
    </notempty>
    </div>
    <neq name="type" value="user">
    <div id="mod-filter" class="radius5">
        <form method="POST" action="{:U('Modcp/moderation',array('type'=>$type))}">
        <span>{$Think.lang.status}: <select id="filter-status" name="status"><option value="0" <eq name="status" value="0">selected</eq>>{$Think.lang.mcp_status_unapproved}</option><option value="-1" <eq name="status" value="-1">selected</eq>>{$Think.lang.mcp_status_disapproved}</option></select></span>&nbsp;&nbsp;
        <span>{$Think.lang.category}: <select id="filter-category" name="cid"><option value="0">{$Think.lang.all_categories}</option>{$categoryOptions}</select></span>
        <span><input type="submit" value="{$Think.lang.search}" /></span>
        </form>
    </div>
    </neq>
</div>

<include file="Public:footer" />

<load href="__PUBLIC__/Js/jquery.selectAll.js" />
<script type="text/javascript">
$('#mark-all').selectAll({range:'.mark'});
$('#mark-all-2').selectAll({range:'.mark-2'});
</script>
